package cn.guoshiweixue.security.service.impl;

import cn.guoshiweixue.security.mapper.UserMapper;
import cn.guoshiweixue.security.model.User;
import cn.guoshiweixue.security.service.UserService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户服务实现类
 * @author guoshiweixue
 * @version 1.0
 * @date 2025/3/10
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Operation(summary = "Get all users", description = "Returns a list of all users")
    @Override
    public List<User> getAllUsers() {
        return userMapper.findAll();
    }
}
